// 导入axios
import axios from "@/utlis/request.js"

export const login = (mobile, code) => {
  return axios({
    method: "POST",
    url: '/app/v1_0/authorizations',
    data: {
      mobile: mobile,
      code: code
    }
  })
}
// 添加token
export const getProfile = () => {
  return axios({
    method: "GET",
    url: '/app/v1_0/user/profile',
    headers: {
      Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1OTQwMTE0MjAsInVzZXJfaWQiOjExMDI0OTA1MjI4Mjk3MTc1MDQsInJlZnJlc2giOmZhbHNlfQ.RA0dRvaKcykTHKGhsaZZVeo_PCIB90kAK3SA7MHcJeM'
    }
  })
}
